package com.zerdoor.dao;

import com.zerdoor.model.UserInfo;

/**
 * 忘记密码
 * Created by zjy on 2015/5/7.
 */
public interface IForgetPassWordDao {

    /**
     * 根据账号查找用户信息
     * @param name
     * @return
     * @throws Exception
     */
    UserInfo findUserInfoByName(String name) throws Exception;

    /**
     * 重置密码
     * @param userId
     * @throws Exception
     */
    void updateUserPwdByUserId(Integer userId) throws Exception;
}
